package com.helloniu.red5.info;

import org.red5.io.amf3.ByteArray;

public class BussinessUnit {
	
	
	public BussinessUnit() {
		
	}
	
	public void writeData(ByteArray barr) {
		barr.writeUTF(type);
		barr.writeBoolean(opened);    	
    }
	
	public void parseData(ByteArray barr) {
		type = barr.readUTF();
		opened = barr.readBoolean();    	
    }
	
	public void copyInfo(BussinessUnit bunit) {
		this.opened = bunit.opened;
	}
	
	public BussinessUnit(String atype) {
		this.type = atype;
	}
	
	public String toString() {
		return type +"|"+ opened;
	}

	// audio,video,whiteboard,docshare,deskshare
	public String type;
	public boolean enabled = true;
	public boolean opened = false;	
}
